package com.younion.common.constants;


public enum TemplateTargetType {
	COMMON("COMMON","一般模板"),
	BIRTHDAY("BIRTHDAY","生日提醒"),
	NORECHARGE("NORECHARGE","无充值提醒"),
	NOCOST("NOCOST","无消费提醒"),
	LESSREMAIN("LESSREMAIN","余额不足提醒"),
	REMAINCOUNT("REMAINCOUNT","剩余计次信息"),
	REGISTER("REGISTER","会员登记通知"),
	COST("COST","现金消费通知"),
	COSTCOUNT("COSTCOUNT","会员计次消费通知"),
	SCORE("SCORE","积分充值通知"),
	COSTSCORE("COSTSCORE","积分消费通知"),
	RECHARGE("RECHARGE","余额充值通知"),
	ADDCOUNT("ADDCOUNT","计次充值通知");
	
	
	private String name;
	private String title;

	private TemplateTargetType(String name,String title) {
		this.name = name;
		this.title = title;
	}

	public String getName() {
		return name;
	}
	
	public String getTitle(){
		return title;
	}

	public static TemplateTargetType valueOfName(String name) {
		for (TemplateTargetType e : TemplateTargetType.values()) {
			if (e.getName().equals(name)) {
				return e;
			}
		}
		return null;
	}

	public static void main(String[] args) {
		System.out.print(TemplateTargetType.valueOfName("*"));
	}
}
